package com.jzo2o.customer.controller.agency;

import com.jzo2o.customer.model.dto.request.AgencyCertificationAuditAddReqDTO;
import com.jzo2o.customer.model.dto.request.WorkerCertificationAuditAddReqDTO;
import com.jzo2o.customer.service.IAgencyCertificationService;
import com.jzo2o.customer.service.IWorkerCertificationService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@Api("服务端认证接口")
@RestController("agencyCertificationController")
@RequestMapping("/agency")
public class AgencyCertificationController {

    @Autowired
    private IAgencyCertificationService agencyCertificationService;
    @PostMapping("/agency-certification-audit")
    @ApiOperation("提交认证申请")
    public void addCertificationAudit(@RequestBody AgencyCertificationAuditAddReqDTO aca){
        agencyCertificationService.addAgencyCertificationAuditAddReqDTO(aca);
    }

    @GetMapping("/agency-certification-audit/rejectReason")
    @ApiOperation("查询最新的驳回原因")
    public String getAgencyRejectReason(){
        return agencyCertificationService.getAgencyRejectReason();
    }
}
